using UnityEngine;
using System.Collections;

public class Tank : Hero 
{
	protected override void Start () 
    {
        base.Start();

        //Fetch Anchor Transforms
        mRightWeaponAttach = mTransform.Find("Tank/Tank_Bone_Root/Tank_Bone0/Tank_Bone1/Tank_Bone3_Waist/Tank_Bone10/Tank_Bone17/Tank_Bone25/Tank_Bone31_Head/Tank_Bone44/Tank_Bone51");
        mLeftWeaponAttach = mTransform.Find("Tank/Tank_Bone_Root/Tank_Bone0/Tank_Bone1/Tank_Bone3_Waist/Tank_Bone10/Tank_Bone17/Tank_Bone23/Tank_Bone29/Tank_Bone32_ShoulderL/Tank_Bone45_ArmL");
        mRightShoulderAttach = mTransform.Find("Tank/Tank_Bone_Root/Tank_Bone0/Tank_Bone1/Tank_Bone3_Waist/Tank_Bone10/Tank_Bone17/Tank_Bone25/Tank_Bone31_Head");
        mLeftShoulderAttach = mTransform.Find("Tank/Tank_Bone_Root/Tank_Bone0/Tank_Bone1/Tank_Bone3_Waist/Tank_Bone10/Tank_Bone17/Tank_Bone23/Tank_Bone29");

        //Fetch WeaponObjects
        mRightWeapon = mTransform.Find("Tank/Shield");
        mLeftWeapon = mTransform.Find("Tank/Sword");
        mRightShoulder = mTransform.Find("Tank/RightShoulder");
        mLeftShoulder = mTransform.Find("Tank/LeftShoulder");

        //Attach Objects To Anchors
        mRightWeapon.parent = mRightWeaponAttach;
        mLeftWeapon.parent = mLeftWeaponAttach;
        mRightShoulder.parent = mRightShoulderAttach;
        mLeftShoulder.parent = mLeftShoulderAttach;
	}

    protected override void FixedUpdate()
    {
        base.FixedUpdate();
    }
	
	protected override void Update () 
    {
        base.Update();
	}
}
